<?php
/**
 * Enter description here ...
 * @author Micou13630
 *
 */
class Label extends Button implements IRenderable {
	
	protected $align;
	protected $valign;
	protected $autoFit;
	
	protected $dynamicContents;
	protected $contents;
	protected $wrap;
	
	protected $icon;
	protected $iconHeight;
	protected $iconWidth;
	protected $iconSize;
	protected $iconSpacing;
	protected $iconOrientation;
	protected $iconAlign;
	
	protected $showDisabledIcon;
	protected $showDownIcon;
	protected $showFocusedIcon;
	protected $showRollOverIcon;
	protected $showSelectedIcon;
	
	/**
	 * Constructeur
	 * @param unknown_type $id
	 * @param unknown_type $title
	 */
	public function Label($id, $contents) {
		parent::Button($id);
		
		$this->contents = $contents;
	}
	
	/**
	 * Implementation de object
	 * @see IRenderable::object()
	 */
	public function object() {
		return get_class($this);
	}

	/**
	 * Implementation de properties
	 * @see IRenderable::properties()
	 */
	public function properties() {
		return parent::getProp($this);
	}
	
	/**
	 * Implementation de scLog
	 * @see IRenderable::scLog()
	 */
	public function scLog() {
		ScCollectionLog::getInstance()->addSc(new ScLog($this->object(), get_object_vars($this)));
	}

	/**
	 * Implementation de render
	 * @see IScreen::render()
	 */
	public function render() {
		$this->scLog();
		return "isc.".$this->object().".create({".$this->properties()."})";
	}
}
